package ai.plantdata.Behavior.mode.MediatorPattern.test;

import ai.plantdata.Behavior.mode.MediatorPattern.classes.User;

/**
 * @Author: WangHui
 * @Date: 2020/12/23 14:33
 * @Description:
 */
public class MediatorPatterbDemo {
    public static void main(String[] args) {
        User rebert = new User("Rebert");
        User john = new User("John");

        rebert.sendMessage("Hi! John");
        john.sendMessage("Hello! Robert");
    }
}
